home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
VEXTIMEV.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
1KB
|
46 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Exchange timer interupt vector.
;*------------------------------------------------------------------------
globl _vex_timv
_vex_timv:
; .cargs #8,handle.w,newtim.l,oldtim.l,cnvtim.l
handle = 8
newtim = 10
oldtim = 14
cnvtim = 18
link a6,#0
clr.l -(sp) ;* Old vector here; contrl[9-10].
move.l newtim(a6),-(sp) ;* New vector in contrl[7-8].
; VContrl #118
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
clr.l -(sp) ; contrl[3,2]
clr.w -(sp) ; contrl[1]
move.w #118,-(sp) ; contrl[0]
subq.l #4,sp ;* -> ptsout
move.l cnvtim(a6),-(sp) ;* -> intout
subq.l #8,sp ;* -> ptsin, intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.l oldtim(a6),a0 ;* Return old vector
move.l -4(a6),(a0) ;* from contrl[9-10].
unlk a6
rts
end